<style>
.fui-number .minus:before, .fui-number .plus:before {
	border-left: 0 solid #d9d9d9;
}
.fui-number .minus:after, .fui-number .plus:after {
	border-right: 0 solid #d9d9d9;
}
.fui-number:before {
	border-top: 0 solid #d9d9d9;
}
.fui-number:after {border-top: 0 solid #d9d9d9;}
.fui-number .num {
	color:#666;
}
.fui-number .num {
	color:#666;
}
.fui-number.small {
	height: 1.2rem;
	line-height: 1.2rem;
}
.fui-number .minus, .fui-number .plus {
	z-index:0;
}
.fui-number.small .minus{
	color: #fff;
	padding-top:1px;
	background: none;
	border: 1px solid #fff;;
	border-radius:50%;
}
 .fui-number.small .plus {
	color: #fff;
	padding-top:1px;
	background: none;
	border: 1px solid #fff;;
	border-radius:50%;
}
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.58;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
</style>
<div ng-if="pagedata.showcvdui" class="popup" style="z-index:800">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showcvdui=false"></i>
			<div class="fui-page-title c" style="margin-top:-1.5rem">
					<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #f2f2f2;" src="../addons/jy_yangjidan/imgs/wugu.png" />
					<div class="">我的CV({{pagedata.member.cv||0}}个)
					</div>
			</div>
			<div class="fui-cell-group" style="padding:0.5rem;padding-bottom:3rem;max-height:20rem;overflow-y:scroll">
					<div class="fui-cell" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;background-color: #f5c44b;">
						<div class="fui-cell-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/jidan.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">兑换鸡蛋</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">当前鸡蛋价格：{{pagedata.pluginset.cv_buyjd}}CV/枚，30枚/件</div>
							<div >
								<div class="fui-number small" style="right:0">
									<div class="minus" ng-click="pagedata.minus()"><i class="icon icon-subtract" style="font-size:0.7rem"></i></div>
									<span style="font-size: 0.55rem;color:#fff">{{pagedata.post.jidannum}}件</span>
									<div class="plus" ng-click="pagedata.plus()"><i class="icon icon-tianjia" style="font-size:0.7rem"></i></div>
								</div>
							</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">消耗：{{pagedata.post.cvfee}}CV</div>
						</div>
						<div class="fui-cell-remark noremark">
							<span class="label label-success" ng-click="pagedata.tocvbuy=true">确定兑换</span>
						</div>
					</div>
					<div class="fui-cell" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;background-color: #cdab6a;">
						<div class="fui-cell-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">复活蛋鸡</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">复活蛋鸡：{{pagedata.pluginset.cv_fuji}}CV/只</div>
						</div>
						<div class="fui-cell-remark noremark">
							<span class="label label-success" ng-click="pagedata.showcvdui=false;pagedata.showjishe=true">前往复活</span>
						</div>
					</div>
					<div class="fui-cell" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;background-color: #cdab6a;">
						<div class="fui-cell-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div class="" style="color:#fff">复活鸡苗</div>
							<div class="" style="font-size:0.5rem;color:#f9f9f9">复活鸡苗：{{pagedata.pluginset.cv_fuji2}}CV/只</div>
						</div>
						<div class="fui-cell-remark noremark">
							<span class="label label-success" ng-click="pagedata.showcvdui=false;pagedata.showjishe=true">前往复活</span>
						</div>
					</div>
			</div>
		</div>
	</div>
<script>
scope.pagedata.post=scope.pagedata.post?scope.pagedata.post:{}
scope.pagedata.post.jidannum=1;
scope.pagedata.post.cvfee=scope.pagedata.post.jidannum*30*scope.pagedata.pluginset.cv_buyjd;
	//减少
scope.pagedata.minus=function(goodsid,index){
	if(scope.pagedata.post.jidannum<=0){
		return false;
	}
	scope.pagedata.post.jidannum--;
	scope.pagedata.post.cvfee=scope.pagedata.post.jidannum*30*scope.pagedata.pluginset.cv_buyjd;
	scope.$evalAsync();
}
//增加
scope.pagedata.plus=function(){
	
	scope.pagedata.post.jidannum++
	scope.pagedata.post.cvfee=scope.pagedata.post.jidannum*30*scope.pagedata.pluginset.cv_buyjd;
	scope.$evalAsync();
}
</script>
<div ng-if="pagedata.tocvbuy" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="padding-bottom:2.5rem">
		<i class="closed icon icon-close" style="color:red;top:0.3rem" ng-click="pagedata.tocvbuy=false"></i>
		<div class="order-create-page modal-swiper-y" style='margin-top:1rem;background:#fff;'>
			<div ng-include="sys_html('_peisong')"></div>
			<div class="fui-cellone" style="margin-top:0.2rem;padding:0.5rem;border-radius:0.5rem;">
						<div class="fui-cellone-label">
							<img style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/jidan.png" />
						</div>
						<div class="fui-cellone-text" style="font-size:0.65rem">
							<div class="">购买鸡蛋</div>
							<div class="" style="font-size:0.5rem;color:#999">鸡蛋{{pagedata.post.jidannum}}件({{pagedata.post.jidannum*30}}枚鸡蛋)</div>
						</div>
						<div class="fui-cellone-remark noremark">
							<span class="syscolor">消耗{{pagedata.post.cvfee}}CV</span>
						</div>
			</div>
		</div>
		<div class='fui-navbar' style="padding:0.35rem 1rem">
			<div class="btn btn-danger btn-banf" style="margin:0;width:100%" ng-click="post(pagedata.post,'jy_yangjidan/index/cvdui/')">提交</div>
		</div>
		</div>
	</div>
</div>
</div>